package com.Listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class Starter implements ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		// TODO 自动生成的方法存根
		//ServletContext application=sce.getServletContext();
		//application.setAttribute("online", 0);
	}

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		// TODO 自动生成的方法存根
		ServletContext application=sce.getServletContext();
		application.setAttribute("online", 0);
	}

}
